<?php
namespace app\index\model;

use think\Model;
class Student extends Model
{
	protected  $pk="s_id";
	protected  $table="spr_student";
	//protected $autoWriteTimestamp = true;
	
	public function card()
	{
		return $this->hasOne("Card","s_id");
	}
	
	public function classes()
	{
		return $this->belongsTo("ClassModel","s_class");
		
	}
	
	
}